package com.sc.nft.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class CollectionExportRequest{
    @ApiModelProperty("交易开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty("交易结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty("类型 1:品牌孵化 2:自由市场")
    @NotNull(message = "交易类型不能为空")
    @Range(min = 1, max = 2 ,message = "交易类型只能选择品牌孵化或者自由市场")
    private Integer marketType;

    @ApiModelProperty("藏品id")
    private List<Long> collectionIdList;
}
